package com.dynamic.mybatis.core.utils;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;

import java.time.LocalDateTime;
import java.util.Date;

public class DateUtils {

    public static String format(Date date, String format) {
        return DateUtil.format(new Date(), format);
    }

    public static String format(LocalDateTime localDateTime, String format){
        return DateUtil.format(localDateTime,format);
    }

}
